package com.just.school_campus.model;

import java.util.ArrayList;
import java.util.List;

public class FeedBackExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FeedBackExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFeedbacksIdIsNull() {
            addCriterion("feedbacks_id is null");
            return (Criteria) this;
        }

        public Criteria andFeedbacksIdIsNotNull() {
            addCriterion("feedbacks_id is not null");
            return (Criteria) this;
        }

        public Criteria andFeedbacksIdEqualTo(String value) {
            addCriterion("feedbacks_id =", value, "feedbacksId");
            return (Criteria) this;
        }

        public Criteria andFeedbacksIdNotEqualTo(String value) {
            addCriterion("feedbacks_id <>", value, "feedbacksId");
            return (Criteria) this;
        }

        public Criteria andFeedbacksIdGreaterThan(String value) {
            addCriterion("feedbacks_id >", value, "feedbacksId");
            return (Criteria) this;
        }

        public Criteria andFeedbacksIdGreaterThanOrEqualTo(String value) {
            addCriterion("feedbacks_id >=", value, "feedbacksId");
            return (Criteria) this;
        }

        public Criteria andFeedbacksIdLessThan(String value) {
            addCriterion("feedbacks_id <", value, "feedbacksId");
            return (Criteria) this;
        }

        public Criteria andFeedbacksIdLessThanOrEqualTo(String value) {
            addCriterion("feedbacks_id <=", value, "feedbacksId");
            return (Criteria) this;
        }

        public Criteria andFeedbacksIdLike(String value) {
            addCriterion("feedbacks_id like", value, "feedbacksId");
            return (Criteria) this;
        }

        public Criteria andFeedbacksIdNotLike(String value) {
            addCriterion("feedbacks_id not like", value, "feedbacksId");
            return (Criteria) this;
        }

        public Criteria andFeedbacksIdIn(List<String> values) {
            addCriterion("feedbacks_id in", values, "feedbacksId");
            return (Criteria) this;
        }

        public Criteria andFeedbacksIdNotIn(List<String> values) {
            addCriterion("feedbacks_id not in", values, "feedbacksId");
            return (Criteria) this;
        }

        public Criteria andFeedbacksIdBetween(String value1, String value2) {
            addCriterion("feedbacks_id between", value1, value2, "feedbacksId");
            return (Criteria) this;
        }

        public Criteria andFeedbacksIdNotBetween(String value1, String value2) {
            addCriterion("feedbacks_id not between", value1, value2, "feedbacksId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(String value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(String value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(String value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(String value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(String value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLike(String value) {
            addCriterion("user_id like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotLike(String value) {
            addCriterion("user_id not like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<String> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<String> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(String value1, String value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(String value1, String value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNull() {
            addCriterion("goods_id is null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNotNull() {
            addCriterion("goods_id is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdEqualTo(String value) {
            addCriterion("goods_id =", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotEqualTo(String value) {
            addCriterion("goods_id <>", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThan(String value) {
            addCriterion("goods_id >", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanOrEqualTo(String value) {
            addCriterion("goods_id >=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThan(String value) {
            addCriterion("goods_id <", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanOrEqualTo(String value) {
            addCriterion("goods_id <=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLike(String value) {
            addCriterion("goods_id like", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotLike(String value) {
            addCriterion("goods_id not like", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIn(List<String> values) {
            addCriterion("goods_id in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotIn(List<String> values) {
            addCriterion("goods_id not in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdBetween(String value1, String value2) {
            addCriterion("goods_id between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotBetween(String value1, String value2) {
            addCriterion("goods_id not between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andPayIdIsNull() {
            addCriterion("pay_id is null");
            return (Criteria) this;
        }

        public Criteria andPayIdIsNotNull() {
            addCriterion("pay_id is not null");
            return (Criteria) this;
        }

        public Criteria andPayIdEqualTo(String value) {
            addCriterion("pay_id =", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdNotEqualTo(String value) {
            addCriterion("pay_id <>", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdGreaterThan(String value) {
            addCriterion("pay_id >", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdGreaterThanOrEqualTo(String value) {
            addCriterion("pay_id >=", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdLessThan(String value) {
            addCriterion("pay_id <", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdLessThanOrEqualTo(String value) {
            addCriterion("pay_id <=", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdLike(String value) {
            addCriterion("pay_id like", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdNotLike(String value) {
            addCriterion("pay_id not like", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdIn(List<String> values) {
            addCriterion("pay_id in", values, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdNotIn(List<String> values) {
            addCriterion("pay_id not in", values, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdBetween(String value1, String value2) {
            addCriterion("pay_id between", value1, value2, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdNotBetween(String value1, String value2) {
            addCriterion("pay_id not between", value1, value2, "payId");
            return (Criteria) this;
        }

        public Criteria andValueIsNull() {
            addCriterion("value is null");
            return (Criteria) this;
        }

        public Criteria andValueIsNotNull() {
            addCriterion("value is not null");
            return (Criteria) this;
        }

        public Criteria andValueEqualTo(String value) {
            addCriterion("value =", value, "value");
            return (Criteria) this;
        }

        public Criteria andValueNotEqualTo(String value) {
            addCriterion("value <>", value, "value");
            return (Criteria) this;
        }

        public Criteria andValueGreaterThan(String value) {
            addCriterion("value >", value, "value");
            return (Criteria) this;
        }

        public Criteria andValueGreaterThanOrEqualTo(String value) {
            addCriterion("value >=", value, "value");
            return (Criteria) this;
        }

        public Criteria andValueLessThan(String value) {
            addCriterion("value <", value, "value");
            return (Criteria) this;
        }

        public Criteria andValueLessThanOrEqualTo(String value) {
            addCriterion("value <=", value, "value");
            return (Criteria) this;
        }

        public Criteria andValueLike(String value) {
            addCriterion("value like", value, "value");
            return (Criteria) this;
        }

        public Criteria andValueNotLike(String value) {
            addCriterion("value not like", value, "value");
            return (Criteria) this;
        }

        public Criteria andValueIn(List<String> values) {
            addCriterion("value in", values, "value");
            return (Criteria) this;
        }

        public Criteria andValueNotIn(List<String> values) {
            addCriterion("value not in", values, "value");
            return (Criteria) this;
        }

        public Criteria andValueBetween(String value1, String value2) {
            addCriterion("value between", value1, value2, "value");
            return (Criteria) this;
        }

        public Criteria andValueNotBetween(String value1, String value2) {
            addCriterion("value not between", value1, value2, "value");
            return (Criteria) this;
        }

        public Criteria andFeedbacksTimeIsNull() {
            addCriterion("feedbacks_time is null");
            return (Criteria) this;
        }

        public Criteria andFeedbacksTimeIsNotNull() {
            addCriterion("feedbacks_time is not null");
            return (Criteria) this;
        }

        public Criteria andFeedbacksTimeEqualTo(String value) {
            addCriterion("feedbacks_time =", value, "feedbacksTime");
            return (Criteria) this;
        }

        public Criteria andFeedbacksTimeNotEqualTo(String value) {
            addCriterion("feedbacks_time <>", value, "feedbacksTime");
            return (Criteria) this;
        }

        public Criteria andFeedbacksTimeGreaterThan(String value) {
            addCriterion("feedbacks_time >", value, "feedbacksTime");
            return (Criteria) this;
        }

        public Criteria andFeedbacksTimeGreaterThanOrEqualTo(String value) {
            addCriterion("feedbacks_time >=", value, "feedbacksTime");
            return (Criteria) this;
        }

        public Criteria andFeedbacksTimeLessThan(String value) {
            addCriterion("feedbacks_time <", value, "feedbacksTime");
            return (Criteria) this;
        }

        public Criteria andFeedbacksTimeLessThanOrEqualTo(String value) {
            addCriterion("feedbacks_time <=", value, "feedbacksTime");
            return (Criteria) this;
        }

        public Criteria andFeedbacksTimeLike(String value) {
            addCriterion("feedbacks_time like", value, "feedbacksTime");
            return (Criteria) this;
        }

        public Criteria andFeedbacksTimeNotLike(String value) {
            addCriterion("feedbacks_time not like", value, "feedbacksTime");
            return (Criteria) this;
        }

        public Criteria andFeedbacksTimeIn(List<String> values) {
            addCriterion("feedbacks_time in", values, "feedbacksTime");
            return (Criteria) this;
        }

        public Criteria andFeedbacksTimeNotIn(List<String> values) {
            addCriterion("feedbacks_time not in", values, "feedbacksTime");
            return (Criteria) this;
        }

        public Criteria andFeedbacksTimeBetween(String value1, String value2) {
            addCriterion("feedbacks_time between", value1, value2, "feedbacksTime");
            return (Criteria) this;
        }

        public Criteria andFeedbacksTimeNotBetween(String value1, String value2) {
            addCriterion("feedbacks_time not between", value1, value2, "feedbacksTime");
            return (Criteria) this;
        }

        public Criteria andFeedbacksStatusIsNull() {
            addCriterion("feedbacks_status is null");
            return (Criteria) this;
        }

        public Criteria andFeedbacksStatusIsNotNull() {
            addCriterion("feedbacks_status is not null");
            return (Criteria) this;
        }

        public Criteria andFeedbacksStatusEqualTo(Integer value) {
            addCriterion("feedbacks_status =", value, "feedbacksStatus");
            return (Criteria) this;
        }

        public Criteria andFeedbacksStatusNotEqualTo(Integer value) {
            addCriterion("feedbacks_status <>", value, "feedbacksStatus");
            return (Criteria) this;
        }

        public Criteria andFeedbacksStatusGreaterThan(Integer value) {
            addCriterion("feedbacks_status >", value, "feedbacksStatus");
            return (Criteria) this;
        }

        public Criteria andFeedbacksStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("feedbacks_status >=", value, "feedbacksStatus");
            return (Criteria) this;
        }

        public Criteria andFeedbacksStatusLessThan(Integer value) {
            addCriterion("feedbacks_status <", value, "feedbacksStatus");
            return (Criteria) this;
        }

        public Criteria andFeedbacksStatusLessThanOrEqualTo(Integer value) {
            addCriterion("feedbacks_status <=", value, "feedbacksStatus");
            return (Criteria) this;
        }

        public Criteria andFeedbacksStatusIn(List<Integer> values) {
            addCriterion("feedbacks_status in", values, "feedbacksStatus");
            return (Criteria) this;
        }

        public Criteria andFeedbacksStatusNotIn(List<Integer> values) {
            addCriterion("feedbacks_status not in", values, "feedbacksStatus");
            return (Criteria) this;
        }

        public Criteria andFeedbacksStatusBetween(Integer value1, Integer value2) {
            addCriterion("feedbacks_status between", value1, value2, "feedbacksStatus");
            return (Criteria) this;
        }

        public Criteria andFeedbacksStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("feedbacks_status not between", value1, value2, "feedbacksStatus");
            return (Criteria) this;
        }

        public Criteria andOrdersIdIsNull() {
            addCriterion("orders_id is null");
            return (Criteria) this;
        }

        public Criteria andOrdersIdIsNotNull() {
            addCriterion("orders_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrdersIdEqualTo(String value) {
            addCriterion("orders_id =", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdNotEqualTo(String value) {
            addCriterion("orders_id <>", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdGreaterThan(String value) {
            addCriterion("orders_id >", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdGreaterThanOrEqualTo(String value) {
            addCriterion("orders_id >=", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdLessThan(String value) {
            addCriterion("orders_id <", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdLessThanOrEqualTo(String value) {
            addCriterion("orders_id <=", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdLike(String value) {
            addCriterion("orders_id like", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdNotLike(String value) {
            addCriterion("orders_id not like", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdIn(List<String> values) {
            addCriterion("orders_id in", values, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdNotIn(List<String> values) {
            addCriterion("orders_id not in", values, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdBetween(String value1, String value2) {
            addCriterion("orders_id between", value1, value2, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdNotBetween(String value1, String value2) {
            addCriterion("orders_id not between", value1, value2, "ordersId");
            return (Criteria) this;
        }

        public Criteria andSolveStatusIsNull() {
            addCriterion("solve_status is null");
            return (Criteria) this;
        }

        public Criteria andSolveStatusIsNotNull() {
            addCriterion("solve_status is not null");
            return (Criteria) this;
        }

        public Criteria andSolveStatusEqualTo(Integer value) {
            addCriterion("solve_status =", value, "solveStatus");
            return (Criteria) this;
        }

        public Criteria andSolveStatusNotEqualTo(Integer value) {
            addCriterion("solve_status <>", value, "solveStatus");
            return (Criteria) this;
        }

        public Criteria andSolveStatusGreaterThan(Integer value) {
            addCriterion("solve_status >", value, "solveStatus");
            return (Criteria) this;
        }

        public Criteria andSolveStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("solve_status >=", value, "solveStatus");
            return (Criteria) this;
        }

        public Criteria andSolveStatusLessThan(Integer value) {
            addCriterion("solve_status <", value, "solveStatus");
            return (Criteria) this;
        }

        public Criteria andSolveStatusLessThanOrEqualTo(Integer value) {
            addCriterion("solve_status <=", value, "solveStatus");
            return (Criteria) this;
        }

        public Criteria andSolveStatusIn(List<Integer> values) {
            addCriterion("solve_status in", values, "solveStatus");
            return (Criteria) this;
        }

        public Criteria andSolveStatusNotIn(List<Integer> values) {
            addCriterion("solve_status not in", values, "solveStatus");
            return (Criteria) this;
        }

        public Criteria andSolveStatusBetween(Integer value1, Integer value2) {
            addCriterion("solve_status between", value1, value2, "solveStatus");
            return (Criteria) this;
        }

        public Criteria andSolveStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("solve_status not between", value1, value2, "solveStatus");
            return (Criteria) this;
        }

        public Criteria andSolveValueIsNull() {
            addCriterion("solve_value is null");
            return (Criteria) this;
        }

        public Criteria andSolveValueIsNotNull() {
            addCriterion("solve_value is not null");
            return (Criteria) this;
        }

        public Criteria andSolveValueEqualTo(String value) {
            addCriterion("solve_value =", value, "solveValue");
            return (Criteria) this;
        }

        public Criteria andSolveValueNotEqualTo(String value) {
            addCriterion("solve_value <>", value, "solveValue");
            return (Criteria) this;
        }

        public Criteria andSolveValueGreaterThan(String value) {
            addCriterion("solve_value >", value, "solveValue");
            return (Criteria) this;
        }

        public Criteria andSolveValueGreaterThanOrEqualTo(String value) {
            addCriterion("solve_value >=", value, "solveValue");
            return (Criteria) this;
        }

        public Criteria andSolveValueLessThan(String value) {
            addCriterion("solve_value <", value, "solveValue");
            return (Criteria) this;
        }

        public Criteria andSolveValueLessThanOrEqualTo(String value) {
            addCriterion("solve_value <=", value, "solveValue");
            return (Criteria) this;
        }

        public Criteria andSolveValueLike(String value) {
            addCriterion("solve_value like", value, "solveValue");
            return (Criteria) this;
        }

        public Criteria andSolveValueNotLike(String value) {
            addCriterion("solve_value not like", value, "solveValue");
            return (Criteria) this;
        }

        public Criteria andSolveValueIn(List<String> values) {
            addCriterion("solve_value in", values, "solveValue");
            return (Criteria) this;
        }

        public Criteria andSolveValueNotIn(List<String> values) {
            addCriterion("solve_value not in", values, "solveValue");
            return (Criteria) this;
        }

        public Criteria andSolveValueBetween(String value1, String value2) {
            addCriterion("solve_value between", value1, value2, "solveValue");
            return (Criteria) this;
        }

        public Criteria andSolveValueNotBetween(String value1, String value2) {
            addCriterion("solve_value not between", value1, value2, "solveValue");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}